#include<bits/stdc++.h>
using namespace std;
int arr[100010]={};
vector <int>v;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    long long n,test=0;
    cin>>n;
    for(int i = 0;i<n;i++){
        cin>>arr[i];
    }
    sort(arr,arr+n);
    for(int i = 0;i<n;i++){
        if(!v.empty()&&test!=v.size()&&arr[i]>v[test]){
            test++;
        }
        v.push_back(arr[i]);
    }
    cout<<v.size()-test;
    fclose(stdin);
    fclose(stdout);
    return 0;
}
